import {createApp} from 'vue'
import Antd from 'ant-design-vue';
import '@assets/css/style.css'
import App from './App.vue'
import 'ant-design-vue/dist/reset.css';
import {setupRouter} from "@/router";
import {setupStore} from "@/store";
import {Config} from "@/config.ts";

//赋值标题
document.title = Config.Title

async function bootStart() {
    const app = createApp(App)
    //挂载状态管理
    setupStore(app)
    //挂载Antd
    app.use(Antd);
    //挂载路由
    const router = await setupRouter();
    app.use(router);
    app.mount('#app')

}

void bootStart()

